import React, { Component } from 'react';
import Item from './Item'

class List extends Component {
  render() {
    return (
      <div>

        {
          this.props.list.map((item) => {
            return <Item key={item.id} item={item} del={this.props.handleDel}></Item>
          })
        }

      </div>
    );
  }
}

export default List;